package com.whf.dataobject;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.whf.enums.ProductStatusEnum;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Administrator on 2018/7/12 0012.
 */
@Entity
@DynamicUpdate
@Data
public class ProductInfo {
    //商品id
    @Id
    private String productId;
    //商品名称
    private String productName;
    //商品单价
    private BigDecimal productPrice;
    //库存
    private Integer productStock;
    //描述
    private String productDescription;
    // 商品小图
    private String productIcn;
    //商品状态,0正常,1下架
    private Integer productStatus= ProductStatusEnum.UP.getCode();
    // 类目编号
    private Integer categoryType;
    @JsonIgnore
    private Date createTime;
    @JsonIgnore
    private Date updateTime;

}
